Skip to content

Conversation

@dmason30
Copy link
Contributor

@dmason30 dmason30 commented May 2, 2020

Its common to do a matrix for supported PHP versions and to cache composer dependencies for faster runs.

image

Note: Installing nova will fail on PRs as it tries to install nova when access to secrets is blocked. The same problem we had with travis.

Its common to do a matrix for supported PHP versions and to cache composer dependencies for faster runs.
@mikebronner
Copy link
Owner

Thanks for the updates :). Blarg, so it looks like actions don't apply env vars to PRs either ... I'll research that more this weekend.

@dmason30
Copy link
Contributor Author

dmason30 commented May 2, 2020

@mikebronner Yeah you will probs have to go down a similar approach

- name: Remove Nova on a Pull Request
  if: github.event_name == 'pull_request'
  run: composer remove laravel/nova --no-update --no-interaction

# Install dependencies & other steps...

- name: Execute Integration and Feature tests via PHPUnit
  run: vendor/bin/phpunit --configuration phpunit.xml.dist --testsuite Integration,Feature

- name: Execute Nova tests via PHPUnit
  if: github.event_name != 'pull_request'
  run: vendor/bin/phpunit --configuration phpunit.xml.dist --testsuite Nova

@dmason30 dmason30 closed this May 2, 2020
@dmason30 dmason30 deleted the patch-2 branch May 2, 2020 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants